<template>
<div>
  <div class="box-hd">
    <h2 class="title">手机</h2>
    <div class="more">
      <router-link :to="link.href">
        {{ link.text }}<i class="iconfont iconfont-arrow-right-big"></i>
      </router-link>
    </div>
    <template>
      <slot name="right"></slot>
    </template>
  </div>
</div>
</template>

<script>
export default {
  props: {
    title: {
      type: String,
      required: true
    },
    link: {
      required: true
    }
  }
}
</script>

<style scoped>
.box-hd {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.box-hd .title {
  font-size: 22px;
  font-weight: 200;
  line-height: 58px;
  color: #333;
}

.box-hd .more a {
  line-height: 58px;
  color: #424242;
  font-size: 16px;
  transition: all .4s;
}
</style>
